package exception;

/**
 * 自定义异常
 * 通常使用自定义异常来表达业务错误
 *
 * 自定义异常应当做到以下几点：
 * 1：类名要见名知意
 * 2：需要继承Excepion(直接灬间接继承均可)
 * 3：提供超类中所有的构造器
 *
 * Illegal：非法的
 */
public class IllegalAgeExcepion extends  Exception{
    public IllegalAgeExcepion() {
    }

    public IllegalAgeExcepion(String message) {
        super(message);
    }

    public IllegalAgeExcepion(String message, Throwable cause) {
        super(message, cause);
    }

    public IllegalAgeExcepion(Throwable cause) {
        super(cause);
    }

    public IllegalAgeExcepion(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
